<?php
return array(
    'basePath'=>dirname(__FILE__).DIRECTORY_SEPARATOR.'..',
    'name'=>'pulsar blog',

    // preloading 'log' component
    'preload'=>array('log'),

    // autoloading model and component classes
    'import'=>array(
        'application.models.*',
        'application.components.*',
        'application.widgets.*'
    ),

    'language' => 'en',
    'defaultController' => 'index',
    // application components
    'components' => require('components.php'),

    'modules' => array(
        'gii' => array(
            'class' => 'system.gii.GiiModule',
            'password' => '111',
            'newFileMode' => '0666',
            'newDirMode' => '0777',
            'generatorPaths' => array(
                'application.gii'
            )
        ),
        'note' => array(
            'components' => array(
                'user'=>array(
                    'class' => 'WebUser',
                    // enable cookie-based authentication
                    'allowAutoLogin'=>true,
                    'loginUrl' => array('note/default/login')
                ),
                'errorHandler'=>array(
    				'class'=>'CErrorHandler',
    				'errorAction'=>'note/default/error',
			    ),
            	'urlManager'=>array(
                    'class' => 'CUrlManager',
                    'urlFormat'=>'path',
                    'showScriptName' => false,
                ),
            ),
        ),
        'nav',
        'notes',
    ),
    'params'=>require('params.php'),
);